Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change badge colors #970

Merged
merged 1 commit into from
Oct 14, 2024
Merged

Change badge colors #970

merged 1 commit into from
Oct 14, 2024

Conversation

wintonzheng
Copy link
Contributor

@wintonzheng wintonzheng commented Oct 14, 2024

Important

StatusBadge component now uses cn utility for badge color classes based on status, removing variant logic.

  • Behavior:
    • StatusBadge component in StatusBadge.tsx now uses cn utility for class names based on status.
    • Removes variant logic, directly mapping status to color classes.
    • Handles Status.Completed, Status.Terminated, Status.Created, Status.Failed, Status.Canceled, Status.TimedOut, Status.Running, and Status.Queued.

This description was created by Ellipsis for 87eb26d. It will automatically update as commits are pushed.

…src/'

<!-- ELLIPSIS_HIDDEN -->

> [!IMPORTANT]
> `StatusBadge` component now uses `cn` utility for badge color classes based on status, removing `variant` logic.
>
>   - **Behavior**:
>     - `StatusBadge` component in `StatusBadge.tsx` now uses `cn` utility to apply class names for badge colors based on `status`.
>     - Removes `variant` logic and directly maps `status` to specific color classes.
>     - Handles `Status.Completed`, `Status.Terminated`, `Status.Created`, `Status.Failed`, `Status.Canceled`, `Status.TimedOut`, `Status.Running`, and `Status.Queued`.
>
> <sup>This description was created by </sup>[<img alt="Ellipsis" src="https://img.shields.io/badge/Ellipsis-blue?color=175173">](https://www.ellipsis.dev?ref=Skyvern-AI%2Fskyvern-cloud&utm_source=github&utm_medium=referral)<sup> for a6476e679ad0d9e50d7ef188f94d2b49a4238bdb. It will automatically update as commits are pushed.</sup>

<!-- ELLIPSIS_HIDDEN -->
Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Looks good to me! Incremental review on 87eb26d in 13 seconds

More details
  • Looked at 51 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. skyvern-frontend/src/components/StatusBadge.tsx:10
  • Draft comment:
    Consider using Status.TimedOut instead of the string "timed_out" for consistency with the Status enum usage.
  • Reason this comment was not posted:
    Comment was on unchanged code.

Workflow ID: wflow_qdPQD2DWtwbgNFmu


You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Looks good to me! Reviewed everything up to 87eb26d in 13 seconds

More details
  • Looked at 51 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. skyvern-frontend/src/components/StatusBadge.tsx:10
  • Draft comment:
    Use Status.TimedOut instead of the string literal "timed_out" for consistency and type safety.
  const statusText = status === Status.TimedOut ? "timed out" : status;
  • Reason this comment was not posted:
    Comment was on unchanged code.

Workflow ID: wflow_UQyoGBh0gv5nhj2i


You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

@msalihaltun msalihaltun merged commit cee39cd into main Oct 14, 2024
2 checks passed
@msalihaltun msalihaltun deleted the salih/change-badge-colors branch October 14, 2024 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants